﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DotPowerJob.Requests
{
    public class WorkerHeartbeatRequest
    {
        public int AppId { get; set; }

        public string AppName { get; set; }

        public string WorkerAddress { get; set; }

        public long HeartbeatTime { get; set; }

        public string Protocol { get; set; }

        public SystemMetrics SystemMetrics { get; set; }
    }

    public class SystemMetrics
    {
        public decimal CpuLoad { get; set; }

        public int CpuProcessors { get; set; }

        public decimal DiskTotal { get; set; }

        public decimal DiskUsage { get; set; }

        public decimal DiskUsed { get; set; }

        public decimal JvmMaxMemory { get; set; }

        public decimal JvmMemoryUsage { get; set; }

        public decimal JvmUsedMemory { get; set; }

        public string Extra { get; set; }

        public int Score { get; set; }
    }
}
